using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NewLife.Log;
using ILog = Cmc.Modbus.Base.ILog;

namespace Cmc.Modbus
{
    public class SimpleLog : ILog
    {
        private NewLife.Log.ILog XLog
        {
            get { return XTrace.Log; }
        }

        public void Debug(string format, params object[] args)
        {
            XLog.Debug(format, args);
        }

        public void Error(string format, params object[] args)
        {
            XLog.Error(format, args);
        }

        public void Fatal(string format, params object[] args)
        {
            XLog.Fatal(format, args);
        }

        public void Info(string format, params object[] args)
        {
            XLog.Info(format, args);
        }

        public void Warn(string format, params object[] args)
        {
            XLog.Warn(format, args);
        }

        public void Write(Base.LogLevel level, string format, params object[] args)
        {
            XLog.Write((LogLevel)level, format, args);
        }


    }
}
